﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
    public class LoaiPhongBUS
    {
        public List<LoaiPhongDTO> GetAll()
        {
            LoaiPhongDAO dao = new LoaiPhongDAO();
            return dao.GetAll();
        }
        public bool Insert(LoaiPhongDTO LP)
        {

                LoaiPhongDAO dao = new LoaiPhongDAO();
                return dao.Insert(LP);

        }
        
        public bool Update(LoaiPhongDTO LP)
        {


                LoaiPhongDAO dao = new LoaiPhongDAO();
                return dao.Update(LP);           
                      
        }
        public bool Delete(LoaiPhongDTO LP)
        {


            LoaiPhongDAO dao = new LoaiPhongDAO();
            return dao.Delete(LP);

        }

    }
}
